<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@  taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
   <h2>在线用户统计</h2>
   <table>
   <c:forEach items="${onLineUsers}" var="n">
      <tr>
         <td>${n.userNo2}</td>
            <td>${n.userName}</td>
            <td>${n.userPwd}</td>
            <td>${n.ud}</td>
      </tr>
   </c:forEach>
   </table>
</body>
</html>